package vh.portlet.category;

import java.io.IOException;

import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

import javax.portlet.PortletPreferences;
import com.liferay.util.bridges.mvc.MVCPortlet;

public class CategoryUserPortlet extends MVCPortlet {

	public void doView(RenderRequest request, RenderResponse response)
			throws PortletException, java.io.IOException {
		// set user list to Render Request parameter
		

	}

	@Override
	public void processAction(ActionRequest actionRequest,
			ActionResponse actionResponse) throws IOException, PortletException {

		PortletPreferences prefs = actionRequest.getPreferences();

		String greeting = actionRequest.getParameter("abc_input");

		if (greeting != null) {
			prefs.setValue("greeting", greeting);
			prefs.store();
		}

		super.processAction(actionRequest, actionResponse);
	}
}
